package org.dream.domain;

/**
 * 
 * @author 关攀攀
 */
public class Dealrecord implements java.io.Serializable {
	private String id;

	private String happenDate;// 发生日期
	private String happenTime;// 成交时间
	private String businessName;// 业务名称
	private String stockCode;// 证券代码
	private String stockName;// 证券名称
	private Double dealPrice;// 成交价格
	private Integer dealNum;// 成交数量
	private Double dealAmount;// 成交金额
	private Double stockBalance;// 股份余额
	private Double commissionCharge;// 手续费
	private Double stampTax;// 印花税
	private Double transferCharge;// 过户费
	private Double otherCharge;// 其他费
	private Double happenCharge;// 发生金额
	private Double fundsBalance;// 资金本次余额
	private String entrustCode;// 委托编号
	private Double entrustPrice;// 委托价格
	private Integer entrustNum;// 委托数量
	private String stockholderCode;// 股东代码
	private String fundsAccount;// 资金帐号
	private String moneyKind;// 币种
	private Integer dealGroup;// 交易组
	public static final String mairu = "证券买入清算";
	public static final String maichu = "证券卖出清算";

	public static enum Dealkind {
		MAIRU, MAICHU

	}

	public String getSimpleDesc() {

		if (businessName.equals(mairu)) {
			return "买入" + dealNum;
		}
		if (businessName.equals(maichu)) {
			return "卖出" + dealNum;
		}
		return "";

	}

	public static void main(String[] args) {

	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getHappenDate() {
		return happenDate;
	}

	public void setHappenDate(String happenData) {
		this.happenDate = happenData;
	}

	public String getHappenTime() {
		return happenTime;
	}

	public void setHappenTime(String happenTime) {
		this.happenTime = happenTime;
	}

	public String getBusinessName() {
		return businessName;
	}

	public void setBusinessName(String businessName) {
		this.businessName = businessName;
	}

	public String getStockCode() {
		return stockCode;
	}

	public void setStockCode(String stockCode) {
		this.stockCode = stockCode;
	}

	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	public Double getDealPrice() {
		return dealPrice;
	}

	public void setDealPrice(Double dealPrice) {
		this.dealPrice = dealPrice;
	}

	public Integer getDealNum() {
		return dealNum;
	}

	public void setDealNum(Integer dealNum) {
		this.dealNum = dealNum;
	}

	public Double getDealAmount() {
		return dealAmount;
	}

	public void setDealAmount(Double dealAmount) {
		this.dealAmount = dealAmount;
	}

	public Double getStockBalance() {
		return stockBalance;
	}

	public void setStockBalance(Double stockBalance) {
		this.stockBalance = stockBalance;
	}

	public Double getCommissionCharge() {
		return commissionCharge;
	}

	public void setCommissionCharge(Double commissionCharge) {
		this.commissionCharge = commissionCharge;
	}

	public Double getStampTax() {
		return stampTax;
	}

	public void setStampTax(Double stampTax) {
		this.stampTax = stampTax;
	}

	public Double getTransferCharge() {
		return transferCharge;
	}

	public void setTransferCharge(Double transferCharge) {
		this.transferCharge = transferCharge;
	}

	public Double getOtherCharge() {
		return otherCharge;
	}

	public void setOtherCharge(Double otherCharge) {
		this.otherCharge = otherCharge;
	}

	public Double getHappenCharge() {
		return happenCharge;
	}

	public void setHappenCharge(Double happenCharge) {
		this.happenCharge = happenCharge;
	}

	public Double getFundsBalance() {
		return fundsBalance;
	}

	public void setFundsBalance(Double fundsBalance) {
		this.fundsBalance = fundsBalance;
	}

	public String getEntrustCode() {
		return entrustCode;
	}

	public void setEntrustCode(String entrustCode) {
		this.entrustCode = entrustCode;
	}

	public Double getEntrustPrice() {
		return entrustPrice;
	}

	public void setEntrustPrice(Double entrustPrice) {
		this.entrustPrice = entrustPrice;
	}

	public Integer getEntrustNum() {
		return entrustNum;
	}

	public void setEntrustNum(Integer entrustNum) {
		this.entrustNum = entrustNum;
	}

	public String getStockholderCode() {
		return stockholderCode;
	}

	public void setStockholderCode(String stockholderCode) {
		this.stockholderCode = stockholderCode;
	}

	public String getFundsAccount() {
		return fundsAccount;
	}

	public void setFundsAccount(String fundsAccount) {
		this.fundsAccount = fundsAccount;
	}

	public String getMoneyKind() {
		return moneyKind;
	}

	public void setMoneyKind(String moneyKind) {
		this.moneyKind = moneyKind;
	}

	public Integer getDealGroup() {
		return dealGroup;
	}

	public void setDealGroup(Integer dealGroup) {
		this.dealGroup = dealGroup;
	}

}
